OneStopTesting - Quality Testing Jobs, eBooks, Articles, FAQs, Training Institutes, Testing Software, Testing downloads, testing news, testing tools, learn testing, manual testing, automated testing, load runner, winrunner, test director, silk test, STLC

Forum| Contact Us| Testimonials| Sitemap| Employee Referrals| News| Articles| Feedback| Enquiry
 
Testing Resources
 
  • Testing Articles
  • Testing Books
  • Testing Certification
  • Testing FAQs
  • Testing Downloads
  • Testing Interview Questions
  • Career In Software Testing
  • Testing Jobs
  • Testing Job Consultants
  • Testing News
  • Testing Training Institutes
  •  
    Fundamentals
     
  • Introduction
  • Designing Test Cases
  • Developing Test Cases
  • Writing Test Cases
  • Test Case Templates
  • Purpose
  • What Is a Good Test Case?
  • Test Specifications
  • UML
  • Scenario Testing
  • Test Script
  • Test Summary Report
  • Test Data
  • Defect Tracking
  •  
    Software testing
     
  • Testing Forum
  • Introduction
  • Testing Start Process
  • Testing Stop Process
  • Testing Strategy
  • Risk Analysis
  • Software Listings
  • Test Metrics
  • Release Life Cycle
  • Interoperability Testing
  • Extreme Programming
  • Cyclomatic Complexity
  • Equivalence Partitioning
  • Error Guessing
  • Boundary Value Analysis
  • Traceability Matrix
  •  
    SDLC Models
     
  • Introduction
  • Waterfall Model
  • Iterative Model
  • V-Model
  • Spiral Model
  • Big Bang Model
  • RAD Model
  • Prototyping Model
  •  
    Software Testing Types
     
  • Static Testing
  • Dynamic Testing
  • Blackbox Testing
  • Whitebox Testing
  • Unit Testing
  • Requirements Testing
  • Regression Testing
  • Error Handling Testing
  • Manual support Testing
  • Intersystem Testing
  • Control Testing
  • Parallel Testing
  • Volume Testing
  • Stress Testing
  • Performance Testing
  • Agile Testing
  • Localization Testing
  • Globalization Testing
  • Internationalization Testing
  •  
    Test Plan
     
  • Introduction
  • Test Plan Development
  • Test Plan Template
  • Regional Differences
  • Criticism
  • Hardware Development
  • IEEE 829-1998
  • Testing Without a TestPlan
  •  
    Code Coverage
     
  • Introduction
  • Measures
  • Working
  • Statement Coverage
  • Branch Coverage
  • Path Coverage
  • Coverage criteria
  • Code coverage in practice
  • Tools
  • Features
  •  
    Quality Management
     
  • Introduction
  • Components
  • Capability Maturity Model
  • CMMI
  • Six Sigma
  •  
    Project Management
     
  • Introduction
  • PM Activities
  • Project Control Variables
  • PM Methodology
  • PM Phases
  • PM Templates
  • Agile PM
  •  
    Automated Testing Tools
     
  • Quick Test Professional
  • WinRunner
  • LoadRunner
  • Test Director
  • Silk Test
  • Test Partner
  • Rational Robot
  •  
    Performance Testing Tools
     
  • Apache JMeter
  • Rational Performance Tester
  • LoadRunner
  • NeoLoad
  • WAPT
  • WebLOAD
  • Loadster
  • OpenSTA
  • LoadUI
  • Appvance
  • Loadstorm
  • LoadImpact
  • QEngine
  • Httperf
  • CloudTest
  •  
    Languages
     
  • Perl Testing
  • Python Testing
  • JUnit Testing
  • Unix Shell Scripting
  •  
    Automation Framework
     
  • Introduction
  • Keyword-driven Testing
  • Data-driven Testing
  •  
    Configuration Management
     
  • History
  • What is CM?
  • Meaning of CM
  • Graphically Representation
  • Traditional CM
  • CM Activities
  • Tools
  •  
    Articles
     
  • What Is Software Testing?
  • Effective Defect Reports
  • Software Security
  • Tracking Defects
  • Bug Report
  • Web Testing
  • Exploratory Testing
  • Good Test Case
  • Write a Test
  • Code Coverage
  • WinRunner vs. QuickTest
  • Web Testing Tools
  • Automated Testing
  • Testing Estimation Process
  • Quality Assurance
  • The Interview Guide
  • Upgrade Path Testing
  • Priority and Severity of Bug
  • Three Questions About Bug
  •    
     
    Home » Testing Articles » Testing - General Articles » What is a Test Case and How to write a test case?

    What is a Test Case and How to write a test case?

    A D V E R T I S E M E N T


    What is a Test Case?

    A test case is a set of procedures, conditions, executions, and expected results verifying the software compliance with the requirements.What is a test case?

    It is ideally prepared by testers at the early stage of the development cycle which helps to identify the issues in the requirements or design of the software as it requires a complete understanding of the software's process.

    Testing the software with test case lets you detect bugs and determine if the software will pass or fail. This can be achieved by choosing the types of test cases to be implemented. These are:

    • Functional � the process of testing the software's behavior for each functionality and also includes the input and output.
    • Structural � it focuses on evaluating from the source code that ensures to cover the program structure on the developed test cases.
    • Erroneous � the created test cases applied are invalid inputs or executions to know the result and determine what is wrong with the software.
    • Stress � it verifies the performance of the software functionality while loading other heavy processes such as extensive queries, repeated inputs or actions, etc.
    • Scripts � it validates a set of instructions performed and determines the expected result of the software.
    • Use Cases � it describes the processes or scenarios to perform.

    How to Write a Test Case?

    Basically, the tester creates the test case in test worksheet and should specify all the possible scenarios for each case with the right and wrong execution. Writing a test case covers the objective of the test case, conditions, steps to perform, necessary inputs, expected result, actual result and notes from the tester. A decision should be made at the end of each test case to determine if it passes or fails.

    Recommended processes in creating a test case are as follows:

    • Determine the amount of test resources to be allocated like the test data tool and develop a process that will help save time throughout the development.
    • Specify all the possible test conditions.
    • Identify the priority of test condition. High-priority should be tested first.
    • Select the test condition to be tested based on the priority of test condition.
    • Determine the correct result of each test case process.
    • Decide the method of creating a test case: key entry, test data generator or input form which will be given to user.
    • Provide documents containing the test cases and test result.
    • Perform test.
    • Verify the test and ensure the correctness of the software.

    Example: Test Case for a typical login module

    Control Number

     

    Action

     

    Objective or Explanation

     

    Expected Results

     

    Pass

     

         

     

    Fail

     

    1

     

    Blank Username or/and Password fields.

    To determine if the login module will allow to access the member's page with blank fields.

    A validation message should be prompted � should complete the fields.



    2

     

    Enter invalid characters on Username field.

    To determine if it will accept invalid characters on Username field. Special characters or symbols are invalid (e.g: ""_*&!)

    A validation message should be prompted and will enable focus on Username field.

     



    3

     

    Enter the allowable limit characters of Password field.

    To validate the allowable limit characters of Password field. Minimum of 6 characters.

    If the entered characters are less than the minimum required, a validation message should be prompted. It should focus and clear the inputs on the Password field.



    4

     

    Enter incorrect password thrice for valid user.

    To secure the account when attempting to input incorrect password for valid user.

    If the attempted entered password is still incorrect on the 3rd time, a validation message should be prompted � the account would be blocked and requires for reactivation.



    5

     

    Complete Username and Password fields.

    To verify if the entered username and password is valid.

    If the account details entered does not exist, a validation message should be prompted and redirects to Sign-Up page. Otherwise, it should redirect to Member's page.




    More Testing - General Articles
    1 2 3 4 5 6 7 8 9 10 11 Next



    discussionDiscussion Center
    Discuss
    Discuss

    Query

    Feedback
    Yahoo Groups
    Y! Group
    Sirfdosti Groups
    Sirfdosti
    Contact Us
    Contact

    Looking for Software Testing eBooks and Interview Questions? Join now and get it FREE!
     
    A D V E R T I S E M E N T
       
       

    Members Login


    Email ID:
    Password:


    Forgot Password
    New User
       
       
    Testing Interview Questions
  • General Testing
  • Automation Testing
  • Manual Testing
  • Software Development Life Cycle
  • Software Testing Life Cycle
  • Testing Models
  • Automated Testing Tools
  • Silk Test
  • Win Runner
  •    
       
    Testing Highlights

  • Software Testing Ebooks
  • Testing Jobs
  • Testing Frequently Asked Questions
  • Testing News
  • Testing Interview Questions
  • Testing Jobs
  • Testing Companies
  • Testing Job Consultants
  • ISTQB Certification Questions
  •    
       
    Interview Questions

  • WinRunner
  • LoadRunner
  • SilkTest
  • TestDirector
  • General Testing Questions
  •    
       
    Resources

  • Testing Forum
  • Downloads
  • E-Books
  • Testing Jobs
  • Testing Interview Questions
  • Testing Tools Questions
  • Testing Jobs
  • A-Z Knowledge
  •    
    Planning
    for
    Study ABROAD ?


    Study Abroad


    Vyom Network : Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | Free eBooks | Job Interview Questions | Free Tutorials | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Bangalore Info | GATE Preparation | MBA Preparation | Free SAP Training
    Privacy Policy | Terms and Conditions
    Sitemap | Sitemap (XML)
    Job Interview Questions | Placement Papers | SMS Jokes | C++ Interview Questions | C Interview Questions | Web Hosting
    German | French | Portugese | Italian